package cn.doways.api.service;

import cn.doways.api.dto.Userinfo;
import cn.doways.api.entity.Secret;
import cn.doways.api.entity.Student;
import cn.doways.api.vo.PersonalCourseTableVO;
import cn.doways.api.vo.SchoolTimeListVO;

import java.sql.SQLException;
import java.util.List;


/**
 * @ClassName UsersService
 * @Description //TODO
 * @Author shellming
 * @Date 2019-08-08 17:42
 **/

public interface UsersService {
    Student getNameById(String id);
    int studentRegister(Secret secret)throws SQLException;
    String login(String username,String password);
    String refreash(String oldToken);
    int logout(String token);
    int updateIntroduction(String id,String introduction);
    Userinfo getStudentInfo(String phoneNum);
    int updateAvatar(String id,String avatarUrl);
    List<PersonalCourseTableVO> getPersonalCourseTable(String id);
    List<SchoolTimeListVO> getWeekTimeList(String id,int yearOne,int yearTwo,int term);
}
